package com.general.app.xtgl.service;

import java.util.List;

import com.general.app.xtgl.dao.entity.AssessUserModel;
import com.general.app.xtgl.dao.entity.RelationModel;
import com.general.common.exception.BusinessException;
import com.general.common.service.BaseService;

/**
 * 用户管理
 * @author Administrator
 *
 */
public interface IAssessUserService extends BaseService<AssessUserModel>{
	

	/**
	 * 保存用户
	 * @param company
	 * @return
	 * @throws BusinessException
	 */
	public boolean saveAssessUser(AssessUserModel assessUser) throws BusinessException;
	
	/**
	 * 批量删除用户
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public String scAssessUser(String ids) throws Exception;

	/**
	 * 匹配用户关系LIST
	 * @param user_id 
	 * @param companyId
	 * @return
	 */
	public List<RelationModel> getRelationList(String userId, String companyId);

	/**
	 * 更新用户关系
	 * @param model
	 * @return
	 */
	public boolean updateRelation(AssessUserModel model);
	
	/**
	 * 取出用户信息列表
	 * @param usrModel
	 * @return
	 */
	public List<AssessUserModel> getUserList(AssessUserModel usrModel);
	
	/**
	 * 取出用户关系信息列表
	 * @param id 被评估者ID(_分割)
	 * @return
	 */
	public List<AssessUserModel> getAssessList(String ids);
	/**
	 * 批量更新用户AssessFlg=>0
	 * @param string
	 */
	public void batchUpdateAssessFlg(String string);
	

	/**
	 * 批量插入用户
	 * @param insertUserLst
	 */
	public int batchInsert(List<AssessUserModel> insertUserLst);
	
	/**
	 * 批量插入用户关系
	 * @param relationModelLst
	 */
	public int batchInsertRelation(List<AssessUserModel> relationModelLst);
}
